package edu.smxy.associationmanagement.services.member.impl;

import edu.smxy.associationmanagement.domain.Member;
import edu.smxy.associationmanagement.domain.MemberResult;
import edu.smxy.associationmanagement.mapper.MemberMapper;
import edu.smxy.associationmanagement.services.member.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
* MemberServiceImpl 服务层接口实现类
* @date  2019/04/18
* @author: : SDH
* @description: 成员管理服务层接口实现类
*/
@Service("MemberService")
public class MemberServiceImpl implements MemberService {
  @Autowired MemberMapper memberMapper;

  @Override
  public int deleteByPrimaryKey(final Integer id) {
    return this.memberMapper.deleteByPrimaryKey(id);
  }

  @Override
  public int insert(final Member record) {
    return this.memberMapper.insert(record);
  }

  @Override
  public int insertSelective(final Member record) {
    return this.memberMapper.insertSelective(record);
  }

  @Override
  public Member selectByPrimaryKey(final Integer id) {
    return this.memberMapper.selectByPrimaryKey(id);
  }

  @Override
  public int updateByPrimaryKeySelective(final Member record) {
    return this.memberMapper.updateByPrimaryKeySelective(record);
  }

  @Override
  public int updateByPrimaryKey(final Member record) {
    return this.memberMapper.updateByPrimaryKey(record);
  }

  @Override
  public List<Member> getAllMemberByAssociationId(final Integer id) {
    return this.memberMapper.getAllMemberByAssociationId(id);
  }

  @Override
  public int insertbyexcel(final MemberResult result) {
    return this.memberMapper.insertbyexcel(result);
  }
}
